package business.report.impl;

import business.report.AcceptanceAgencyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import report.domain.AcceptanceAgency;
import report.domain.AcceptanceAgencyCriteria;
import report.mapper.AcceptanceAgencyMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/19.
 */
@Service(value = "acceptanceAgencyService")
public class AcceptanceAgencyServiceimpl implements AcceptanceAgencyService {
    @Autowired
    AcceptanceAgencyMapper acceptanceAgencyMapper;
    @Override
    public List<AcceptanceAgency> getAcceptanceAgency() {
        AcceptanceAgencyCriteria criteria = new AcceptanceAgencyCriteria();
        criteria.createCriteria().getAllCriteria();
        return acceptanceAgencyMapper.selectByExample(criteria);
    }
}
